package mirrormonkey.util.netevent.message.tools;

import com.jme3.network.Message;

/**
 * Does nothing but keeping track of its reliability
 * 
 * @author Philipp Christian Loewner
 * 
 */
public class MockMessage implements Message {

	private boolean reliable;

	public MockMessage() {
		this(true);
	}

	public MockMessage(boolean reliable) {
		this.reliable = reliable;
	}

	@Override
	public Message setReliable(boolean f) {
		reliable = f;
		return this;
	}

	@Override
	public boolean isReliable() {
		return reliable;
	}

}
